import { defineStore } from "pinia";
import { FoodItem } from "@/types/food";
export default defineStore("commodity", {
  state: () => ({
    commodityDetail: {} as FoodItem, // 商品详情
  }),

  actions: {
    setCommodityDetail(data: FoodItem) {
      this.commodityDetail = data;
    },
  },
});
